package csu.web.credit_bank.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@TableName("password_reset_tokens")
public class PasswordResetToken {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String token;

    private String userId;

    private Date expiryDate;

    public PasswordResetToken(String token, String userId, Date expiryDate) {
        this.token = token;
        this.userId = userId;
        this.expiryDate = expiryDate;
    }
}